package com.zsrt.java.day20161230.wrl.t04;

public class Manager {
	String username;	//用户名
	String password;	//密码
	
	//创建不带参数的构造器
	public Manager() {
	}
	
	//创建带参数的构造器
	public Manager(String name,String pass){
		this.username = name;
		this.password = pass;
	}
	
	public String toString(){
		return "管理员信息是：\n用户名： \t"+username+"\n密    码： \t"+password;
	}
	
	public boolean equals(Manager m){
		if(this.username.equals(m.username)&&this.password.equals(m.password))
			return true;
		return false;
	}

}
